#ifndef FFZCONFIG
#define FFZCONFIG 1
#include "ffz/bit-ops.h"
#define NODE_NUM 15
#define EVENT_BUTTON 139
#define EVENT_ETIMER 136
#define UDP_CLIENT_PORT 8765
#define UDP_SERVER_PORT 5678
#define HEX_ONE 16
#define HEX_DOUBLE 256
//the Candidate Timer reset
#define EVENT_CANDIDATE_RESET 100
#define EVENT_BROADCAST 101
#define ACTION_LENGTH 3
#define TRUE 1
#define FALSE 0
/**Increase the button counter
 * return the action index
 * */
uint16_t button_click();

/**Clear the button counter
 * return the action index
 * */
uint16_t button_clear();

/**get the name of action with the index
 * */
char *get_action_name(uint16_t index);

/**print the local addresses*/
void print_local_addresses_and_set_id(void);

/**get the self id in raft-table*/
uint16_t raftTableLocalId();
#endif
